package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.PcrResult;
import com.zhijian.medical.entity.vo.request.PcrResultSearchVo;
import com.zhijian.medical.entity.vo.response.PcrResultVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PcrResultMapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据实验id与设备id进行删除
     *
     * @param pcrId
     * @param deviceId
     * @return
     */
    int deleteByPcrIdAndDeviceId(@Param("pcrId") Long pcrId, @Param("deviceId") Long deviceId);

    /**
     * 根据实验id进行删除
     *
     * @param pcrId
     */
    void deleteByPcrId(Long pcrId);

    /**
     * 根据扩增仪数据id删除
     *
     * @param pcrKzyId
     * @return
     */
    int deleteByPcrKzyId(Long pcrKzyId);

    int insert(PcrResult record);

    int insertSelective(PcrResult record);

    PcrResult selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PcrResult record);

    int updateByPrimaryKey(PcrResult record);

    int count(PcrResultSearchVo pcrResultSearchVo);

    List<PcrResultVo> selectList(PcrResultSearchVo pcrResultSearchVo);

    PcrResultVo selectVoById(Long id);
}